﻿@model MasResourceType

@Html.HiddenFor(model => model.ResTypeId)
@Html.HiddenFor(model => model.RecordStatus)

<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ประเภทพัสดุ</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main form-horizontal">
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Code)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.Code)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Name)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.Name)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         นำไปคิดค่าเสื่อม
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.Raw(Model.DepreciationCalculate == "Y" ? "<span class='green' style='font-weight:bold'>ใช่</span>" : "<span class='red bold' style='font-weight:bold'>ไม่ใช่</span>")
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Descr)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.Raw(Model.Descr.UseHtmlNewLineTag())
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
